<?php
    include('top.php');
    $id = $_GET['id'];
    $sql = "select * from article where id = $id";
    $result = $link->query($sql);
    $row = mysqli_fetch_array($result);
?>

<div class="home-body">

    <div class="home-container-body">
        <div class="home-side-by-side-start" style="width: 300px;">
            <h1 class="home-title"><?php echo $row['title']; ?></h1>
            <div class="article_time">发布时间：<?php echo date("Y-m-d H:i:s",$row['time']) ?></div>
            <div class="article_body"><?php echo $row['text']; ?></div>
        </div>
    </div>
</div>

<?php include('bottom.php'); ?>